package com.pro.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author YuQing
 * @date 2022/1/6 18:43
 */
@Data
public class JsProduct {
    private Integer productId;//主键商品id
    private Integer productCode;//商品编号
    private Integer categroyId;//商品分类
    private Integer recommend;//商品推荐
    private Integer discount;//优惠券
    private Integer ensure;//服务保证
    private String productName;//商品名称
    private String searchKeywords;//搜索商品关键字
    private String mainImage;//商品主图
    private Integer currentpriceProduct;//商品现价
    private Integer originalpriceProduct;//商品原价
    private String productDescription;//商品描述
    private Integer hits;//商品的点击量
    private Integer productSate;//商品状态 1上架，2下架，3已删除
    private String createId;//创建人
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private String createDate;//创建时间
    private String updateId;//更新人
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private String updateDate;//更新时间
    private String title;//分类名称
    private String result;//审核状态
    private String recordId;//审核id
    private Integer type;//商品类型
    private String productLabel;//商品标签
    private Integer productSales;//商品销量
    private Integer productCollectionCount;//商品收藏量
    private String createName;//创建人名称

    public JsProduct() {
    }

    public JsProduct(Integer productId, Integer productCode, Integer categroyId, Integer recommend, Integer discount, Integer ensure, String productName, String searchKeywords, String mainImage, Integer currentpriceProduct, Integer originalpriceProduct, String productDescription, Integer hits, Integer productSate, String createId, String createDate, String updateId, String updateDate, String title, String result, String recordId, Integer type, String productLabel, Integer productSales, Integer productCollectionCount, String createName) {
        this.productId = productId;
        this.productCode = productCode;
        this.categroyId = categroyId;
        this.recommend = recommend;
        this.discount = discount;
        this.ensure = ensure;
        this.productName = productName;
        this.searchKeywords = searchKeywords;
        this.mainImage = mainImage;
        this.currentpriceProduct = currentpriceProduct;
        this.originalpriceProduct = originalpriceProduct;
        this.productDescription = productDescription;
        this.hits = hits;
        this.productSate = productSate;
        this.createId = createId;
        this.createDate = createDate;
        this.updateId = updateId;
        this.updateDate = updateDate;
        this.title = title;
        this.result = result;
        this.recordId = recordId;
        this.type = type;
        this.productLabel = productLabel;
        this.productSales = productSales;
        this.productCollectionCount = productCollectionCount;
        this.createName = createName;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getProductCode() {
        return productCode;
    }

    public void setProductCode(Integer productCode) {
        this.productCode = productCode;
    }

    public Integer getCategroyId() {
        return categroyId;
    }

    public void setCategroyId(Integer categroyId) {
        this.categroyId = categroyId;
    }

    public Integer getRecommend() {
        return recommend;
    }

    public void setRecommend(Integer recommend) {
        this.recommend = recommend;
    }

    public Integer getDiscount() {
        return discount;
    }

    public void setDiscount(Integer discount) {
        this.discount = discount;
    }

    public Integer getEnsure() {
        return ensure;
    }

    public void setEnsure(Integer ensure) {
        this.ensure = ensure;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getSearchKeywords() {
        return searchKeywords;
    }

    public void setSearchKeywords(String searchKeywords) {
        this.searchKeywords = searchKeywords;
    }

    public String getMainImage() {
        return mainImage;
    }

    public void setMainImage(String mainImage) {
        this.mainImage = mainImage;
    }

    public Integer getCurrentpriceProduct() {
        return currentpriceProduct;
    }

    public void setCurrentpriceProduct(Integer currentpriceProduct) {
        this.currentpriceProduct = currentpriceProduct;
    }

    public Integer getOriginalpriceProduct() {
        return originalpriceProduct;
    }

    public void setOriginalpriceProduct(Integer originalpriceProduct) {
        this.originalpriceProduct = originalpriceProduct;
    }

    public String getProductDescription() {
        return productDescription;
    }

    public void setProductDescription(String productDescription) {
        this.productDescription = productDescription;
    }

    public Integer getHits() {
        return hits;
    }

    public void setHits(Integer hits) {
        this.hits = hits;
    }

    public Integer getProductSate() {
        return productSate;
    }

    public void setProductSate(Integer productSate) {
        this.productSate = productSate;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getRecordId() {
        return recordId;
    }

    public void setRecordId(String recordId) {
        this.recordId = recordId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getProductLabel() {
        return productLabel;
    }

    public void setProductLabel(String productLabel) {
        this.productLabel = productLabel;
    }

    public Integer getProductSales() {
        return productSales;
    }

    public void setProductSales(Integer productSales) {
        this.productSales = productSales;
    }

    public Integer getProductCollectionCount() {
        return productCollectionCount;
    }

    public void setProductCollectionCount(Integer productCollectionCount) {
        this.productCollectionCount = productCollectionCount;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }
}
